<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Entity extends Model
{
    public function getRole()
    {
        return $this->belongsToMany('App\Models\Role', 'role_access_privilege', 'entity_id', 'role_id');
    }
}
